<?php

session_start();
unset($_SESSION['cart']);   //清除SESSION中的购物车
$_SESSION['cart'] = array();//重新设置购物车为空数组
header('Location: displaycart.php');